{extend name='layout/base' /}
{block name='title'}照片信息列表{/block}
{block name='contentHeader'}
<h1>
    照片信息管理
    <small>照片信息列表</small>
</h1>
<ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> 照片信息管理</a></li>
    <li class="active">照片信息列表</li>
</ol>
{/block}
{block name='content'}
<!-- /.box -->
<div class="box">
    <div class="box-header with-border">
        <h3 class="box-title">照片信息 共有<strong style="color:red;">{$picCount}</strong>个</h3>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <!-- search form -->
        <form action="" method="get" class="sidebar-form0" style="width:80%;margin: 0 auto;">
            <div class="input-group">
                <input type="text" name="q" class="form-control" value="{:$q ? $q : '';}" placeholder="请输入照片说明...">
                <span class="input-group-btn">
                    <button type="submit" id="search-btn" class="btn btn-flat">
                        <i class="fa fa-search"></i>
                    </button>
                </span>
            </div>
        </form>
        <!-- /.search form -->
        <table class="table table-bordered">
            <tr>
                <th>照片说明</th>
                <th>上传时间</th>
                <th>上传者</th>
                <th>照片</th>
                <th>操作</th>
            </tr>
            {volist name='list' id='pic'}
            <tr>
                <td>{$pic.pic_info}</td>
                <td>{$pic.pic_time}</td>
                <td>{$pic.admin.admin_name}</td>
                <td><a href="{$pic.pic_url}" target="_blank"><img src="{$pic.pic_url}" height="60" /></a></td>
                <td>
                    <a href="{:url('Pic/del',['pic_id' => $pic.pic_id])}" class="badge bg-red">删除</a>
                </td>
            </tr>
            {/volist}
        </table>
    </div>
    <!-- /.box-body -->
    <div class="box-footer clearfix">
        <ul class="pagination pagination-sm no-margin pull-right">
            {$list|raw}
        </ul>
    </div>
</div>
<!-- /.box -->
{/block}